package com.opengw.configuration.entity;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

public class PublishTask {
	private long taskId;
	private String taskName;
	private String publishType;
	private List<PublishTask> subTaskList;
	private boolean taskHolder;
	
	public PublishTask(int type){
		UUID uuid = UUID.randomUUID();
		taskName = uuid.toString().substring(0, 15);
		subTaskList = new ArrayList<PublishTask>();
		publishType = "type";
		taskHolder = false;
	}

	public void setTaskId(long taskId) {
		this.taskId = taskId;
	}

	public long getTaskId() {
		return taskId;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setPublishType(String publishType) {
		this.publishType = publishType;
	}

	public String getPublishType() {
		return publishType;
	}

	public void setSubTaskList(List<PublishTask> subTaskList) {
		this.subTaskList = subTaskList;
	}

	public List<PublishTask> getSubTaskList() {
		return subTaskList;
	}

	public void setTaskHolder(boolean taskHolder) {
		this.taskHolder = taskHolder;
	}

	public boolean isTaskHolder() {
		return taskHolder;
	}
	



}
